package com.example.dml.proxy_pattern.static_proxy;

/**
 * @description:
 * @author: gaoyang
 * @date: 2021/10/26 21:49
 */
public class OrderService implements IOrderService{

    private OrderDao orderDao;

    public OrderService() {
        this.orderDao = new OrderDao();
    }

    @Override
    public int createOrder(Order order) {
        System.out.println("OrderService调用orderDao创建订单");
        return orderDao.insert(order);
    }
}
